import axios from "axios";
var  baseUrl="http://111.229.255.208:8004/api";
export default {	
  handleSearch(query,url,type,tableData){
    axios({
      method: type,
      url: `${baseUrl}/${url}`,
      query,
    })
      .then((res) => {
        if (!res.success) {
          this.$message({ message: res.message, type: "error" });
          // this.$message({ message: res.data.message, type: "success" });
        }
        if (res && res.data) {
          tableData=res.data
           // this.$message({ message: res.message, type: "success" });
        }
      })
  }
}
